home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / comm / misc / http_log_2.lha / httplog.doc < prev    next >
Encoding:
Text File  |  1995-04-10  |  1.3 KB  |  51 lines

  1.  
  2.      httplog.c
  3.  
  4.      (c) Armin Obersteiner
  5.  
  6.      Parsing ncsa/cern httpd logfile
  7.  
  8.      USAGE: httplog [-s <keyword>] [-l] <logfile>
  9.  
  10.      <logfile>      -  httpd <logfile>
  11.      -l             -  long: country statistics
  12.      -lt            -  long: time statistics
  13.      -s <keyword>   -  search for <keyword>
  14.  
  15.      compiles on:   MaxonC++ (amiga)
  16.                     gcc (amiga)
  17.                     gcc (bsd)
  18.      (it should actually compile on any platform then :)
  19.  
  20.       ->>>  gcc -o httplog httplog.c -lm
  21.  
  22.      it´s made to work on ncsa logfiles:
  23.  
  24.         Site [Weekday Month Day Hours(24):Min:Sec Year] Method URL Protocol
  25.  
  26.      and cern logfiles:
  27.  
  28.         Site - - [Day/Month/Year:Hours(24):Min:Sec +GMT_Hours] "Method URL Protocol" #1 #2
  29.  
  30.  
  31.  
  32.      to include new countries:
  33.  
  34.            -   add lines to structure "struct dummy c"
  35.            -  don´t forget to increase "country_anz"
  36.  
  37.      to adapt time and date for other logfile formats:
  38.  
  39.            -   do the same with "struct dummy d" / "struct dummy t"
  40.            -  don´t forget to increase/decrease "day_anz" :)  / "time_anz"
  41.  
  42.      the second entry in these stuctures (dummy) is the string to search for
  43.      (use spaces or brackets, because it´s more reliable then)
  44.      the third entry is the string for output
  45.  
  46.  
  47.      CU Armin :)
  48.  
  49.         ( Armin.Obersteiner@giga.or.at )
  50.  
  51.